package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 服务降级的处理
 * @date 2021/9/17 14:06
 */

@Component
public class PaymentFallbackService implements PaymentHystrixService {

    public String pamentInfo_ok1(Integer id) {
        return "pamentInfo_ok1，对方支付系统繁忙或者运行报错，请稍后再试";
    }

    public String pamentInfo_TimeOut1(Integer id) {
        return "pamentInfo_TimeOut1，对方支付系统繁忙或者运行报错，请稍后再试";
    }
}
